/***************************************************************************
 *   Copyright (C) 2009 by maarten,,,   *
 *   maarten@maarten-laptop   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef OBJECTOBJECT_H
#define OBJECTOBJECT_H

#include <QVector>

namespace object {

class Plane;
class Vertex;
class ObjectTexture;
class Normal;

/**
	@author maarten,,, <maarten@maarten-laptop>
*/
class Object{
public:
    Object();
    ~Object();

    void addPlane(Plane *plane);
    void addNormal(Normal *normal);
    void addTexture(ObjectTexture *texture);
    void addVertex(Vertex *vertex);

    Vertex* getVertex(int id);
    ObjectTexture* getTexture(int id);
    Normal* getNormal(int id);
    Plane* getPlane(int id);
    

    inline int nrOfPlanes(){return m_planeList.size();}
    inline int nrOfVertices(){return m_vertexList.size();}
    inline int nrOfNormals(){return m_normalList.size();}

    void print();

private:
    QVector<Plane*> m_planeList;

    QVector<Vertex*> m_vertexList;
    QVector<ObjectTexture*> m_textureList;
    QVector<Normal*> m_normalList;

};

}

#endif
